<#include "/common/include.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增物业公司">
</@header>
<@addorEdit fromId="form-company-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "公司名称"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="name" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "公司别名"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="alias" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "法人"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="legalPerson" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "法人电话"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="legalTel" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "营业执照"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="bizLicenseNo" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "营业执照照片"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="bizLicensePhoto" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "账号ID"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="adminId" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "管理员用户名"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="adminName" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "公司状态"/>：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="status" value="">
                        <label th:for="status" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "图片地址"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="image" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label"><@ctx.i18n text = "公司介绍"/>：</label>
                <div class="col-sm-8">
                    <textarea name="introduce" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "物管系统地址"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="pwsUrl" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "物管系统ID"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="pwsId" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "授权appid"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="appid" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = "授权秘钥"/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="appSecret" class="form-control" type="text">
                                    </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label"><@ctx.i18n text = ""/>：
                                 </label>
                <div class="col-sm-8">
                    <input name="delFlag" class="form-control" type="text">
                                    </div>
            </div>
</@addorEdit>
<@footer>
    <script type="text/javascript">
        var prefix = baseURL + "company/company"
        $("#form-company-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if (opt.validate.form()) {
                opt.operate.save(prefix + "/add", $('#form-company-add').serialize());
            }
        }





















</script>
</@footer>
</@pageTheme>